package com.github.mapper;

import com.github.bean.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    User findByAccount(String account);
    int addUser(String account, String password);
    int delUser(String account);
    int updatePassword(String account, String password);
    int reserveAccount(String account);
    int unReserveAccount(String account);
    List<User> getReserveUser();
    List<User> getAllUser();
    void delAllAccount();
    void delAllNonReservedAccount();
    String getPassword(String account);
    List<User> getAllNonReservedUser();
}
